<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #box{
      width: 150px;
      height: 150px;
      background-color: red;
      margin: 20px auto;
    }
  </style>
</head>
<body>
  <div id="box"></div>
  <script>
    let box=document.getElementById('box');
    box.ontouchstart=handleStart;
    box.ontouchmove=handleMoved;
    box.ontouchend=handleEnd;
    box.ontouchcancel=handleCancel;
    function handleStart(e){
      // console.log('touchstart',e);
      var touch=e.changedTouches[0]
      console.log(touch.pageX,touch.pageY);
    }
    function handleMoved(e){
      // console.log('touchmove',e);
      // console.log(e.touches,e.targetTouches,e.changedTouches);
    }
    function handleEnd(e){
      // console.log('touchend',e);
    }
    function handleCancel(){

    }
  </script>
</body>
</html>